Repository navigation
Conversation
The previous commit on main defined payout_platform_fee twice in helpers/payout.rs, so the escrow lib did not compile (E0428) and no test suite could run. Drop the byte-identical second copy. 🤖 Generated with Codebuff Co-Authored-By: Codebuff <noreply@codebuff.com>
queue_set_fee_collector and queue_set_treasury hashed whatever address they were given into the timelock proposal, so a zero, contract, or admin address could be queued and, once executed, route protocol fees to a black hole or collapse the admin/collector role split. Run the existing fee-collector/treasury invariant helpers on the queue path and extend both helpers to reject env.current_contract_address() with InvalidAddress. execute_set_* already call these helpers, so queue time and execution time now enforce the same rules. Adds regression tests in test_admin.rs covering zero, contract, and admin targets for both queued updates, plus the shared execution-time helper. 🤖 Generated with Codebuff Co-Authored-By: Codebuff <noreply@codebuff.com>
) TimelockQueued, TimelockExecuted, and TimelockCancelled already stamp EVENT_SCHEMA_VERSION, but nothing pinned that contract for indexers, and the emitter doc comments advertised a third `operation as u32` topic that is never published. Align the doc comments with the two-symbol tuples that are actually emitted, keep EVENTS.md in sync, and add a regression test that decodes the emitted TimelockQueued/Executed/Cancelled payloads, asserts schema_version == EVENT_SCHEMA_VERSION, checks the topic tuple shape, and round-trips each payload through XDR. 🤖 Generated with Codebuff Co-Authored-By: Codebuff <noreply@codebuff.com>
|
@Kaybee973 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
4 tasks
Remove the stale duplicate `dispute_state_machine` module and dead helpers, fix the clippy/rustfmt drift, and resync the TypeScript error codes with `errors.rs` so the check, bindings and error-code jobs agree. 🤖 Generated with Codebuff Co-Authored-By: Codebuff <noreply@codebuff.com>
Picks up the upstream CI repairs (duplicate payout helper, rustfmt, clippy) so this branch builds on current main instead of the broken base commit. 🤖 Generated with Codebuff Co-Authored-By: Codebuff <noreply@codebuff.com>
Settlement accrues protocol fees in the contract for the collector to pull instead of transferring them immediately, fees are snapshotted at escrow creation, and an admin rotation invalidates queued timelock slots. Update the affected unit and integration tests, the fallback-deadline fixtures, and the regenerated Soroban snapshots so `make test` and `make test-all` pass again. 🤖 Generated with Codebuff Co-Authored-By: Codebuff <noreply@codebuff.com>
The fee-accrual change adds storage writes to settlement, pushing several operations past the 5% gas gate. Record the current measurements so the regression check compares against the merged behaviour. 🤖 Generated with Codebuff Co-Authored-By: Codebuff <noreply@codebuff.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull Request Checklist
Thank you for contributing! Please review the following checklist to ensure your PR is ready for review.
Summary
Fixes #issueorRelated to #issue.Testing
cargo test).Documentation
Code Quality
cargo fmt).cargo clippy).Breaking Changes
Additional Notes
Please ensure all checkboxes are checked before requesting a review.
Closes #1244
Closes #1242